package com.zenithmind.task.pojo.query;

import com.zenithmind.common.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 任务日志查询条件
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "任务日志查询条件")
public class TaskLogQuery extends BaseQuery {

    @Schema(description = "任务ID")
    private String taskId;

    @Schema(description = "任务ID列表")
    private List<String> taskIds;

    @Schema(description = "操作者ID")
    private String operatorId;

    @Schema(description = "操作者ID列表")
    private List<String> operatorIds;

    @Schema(description = "日志类型：1-操作日志，2-工时日志，3-系统日志")
    private Integer logType;

    @Schema(description = "日志类型列表")
    private List<Integer> logTypes;

    @Schema(description = "操作类型：1-创建，2-状态变更，3-分配任务，4-进度更新，5-记录工时，6-添加评论，7-上传附件，8-删除")
    private Integer operationType;

    @Schema(description = "操作类型列表")
    private List<Integer> operationTypes;

    @Schema(description = "操作时间开始")
    private LocalDateTime operationTimeBegin;

    @Schema(description = "操作时间结束")
    private LocalDateTime operationTimeEnd;

    @Schema(description = "创建时间开始")
    private LocalDateTime createTimeBegin;

    @Schema(description = "创建时间结束")
    private LocalDateTime createTimeEnd;

    @Schema(description = "IP地址")
    private String ipAddress;

    @Schema(description = "搜索关键词（日志内容、备注）")
    private String keyword;
}
